@extends('layouts.adminlayout')

@section('main')
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Chứng Chỉ <small>Tạo chứng chỉ</small></h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                    {{ Form::open(array('route' => 'certificates.store','role'=>'form')) }}
                    <div class="form-group">
                        {{ Form::label('ma_chung_chi', 'Mã Chứng Chỉ:',array('for'=>'ten_chuyen_muc')) }}
                        {{ Form::text('ma_chung_chi',null,array('class'=>'form-control','required')) }}
                    </div>
                    <div class="form-group">
                        {{ Form::label('ten_chung_chi', 'Tên Chứng Chỉ:',array('for'=>'ten_chuyen_muc')) }}
                        {{ Form::text('ten_chung_chi',null,array('class'=>'form-control','required')) }}
                    </div>
                </div><!-- /.box-body -->
                <div class="box-footer">
                    {{ Form::submit('Thêm Chứng Chỉ', array('class' => 'btn btn-info')) }}
                    {{ link_to_route('certificates.index', 'Huỷ', null, array('class' => 'btn btn-default')) }}
                    {{ Form::close() }}
                </div>
               <br>
                @if ($errors->any())
                    {{ implode('', $errors->all('<div class="error callout callout-danger">:message</div>')) }}
                @endif
            </div><!-- /.box -->
        </div>
    </div>
</section>
@stop


